package com.three.productList.service.impl;

import com.three.core.entity.StoreAddress;

import com.three.core.entity.UserAddress;
import com.three.core.vo.R;
import com.three.productList.dao.UserAddressDao;
import com.three.productList.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：li
 * @date ：Created in 2025/3/18 018 16:13
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class UserAddressServiceImpl implements UserAddressService {
    @Autowired
    private UserAddressDao userAddressDao;
    //查询用户地址
    @Override
    public R<List<UserAddress>> selectAddressById(Integer userId) {
        List<UserAddress> userAddresses = userAddressDao.selectByMyId(userId);
        return new R<>(200,"查询成功",userAddresses);
    }
}
